import { RouteRecordRaw } from 'vue-router'
import layout from '@/components/layout/layout.vue'
const routes: Array<RouteRecordRaw> = [
    {
        path: '/home',
        name: 'home',
        component:layout,
        children:[
            {
                path: '',
                name: 'Home', 
                component:()=>import('@/views/home/index.vue'),
                meta:{
                    title:'首页'
                }
            }
        ]
    },
    {
        path: '/product',
        name: 'product',
        component:layout,
        children:[
            {
                path: '',
                name: 'Product', 
                component:()=>import('@/views/product/index.vue'),
                meta:{
                    title:'产品'
                }
            }
        ]
       
    },
    {
        path: '/case',
        name: 'case',
        component:layout,
        children:[
            {
                path: '',
                name: 'Case', 
                component:()=>import('@/views/case/index.vue'),
                meta:{
                    title:'项目案例'
                }
            }
        ]
       
    },
    {
        path: '/team',
        name: 'team',
        component:layout,
        children:[
            {
                path: '',
                name: 'Team', 
                component:()=>import('@/views/team/index.vue'),
                meta:{
                    title:'服务团队'
                }
            }
        ]
       
    },
    {
        path: '/consult',
        name: 'consult',
        component:layout,
        children:[
            {
                path: '',
                name: 'Consult', 
                component:()=>import('@/views/consult/index.vue'),
                meta:{
                    title:'公司咨询'
                }
            }
        ]
       
    },
]
  export default routes